import type { TableColumnsType } from 'ant-design-vue';

const sea_situation_mock_data = [
  {
    id: 'HJ001',
    targetType: '护卫舰',
    sideNumber: '温州526',
    planeNumber: '歼-7E',
    discoveryTime: '2024-02-27 16:57:43',
    longitude: '东经122°6′2.704″',
    latitude: '北纬27°33′33.037″',
    desiredTrack: '42°', // 航向
    navigationalSpeed: '18节', // 航速
    altitude: '0', // 高度
    national: '中国',
    lastMessageTime: '2024-02-28 16:57:43',
  },
  {
    id: 'HJ001',
    targetType: '护卫舰',
    sideNumber: '温州526',
    planeNumber: '歼-7E',
    discoveryTime: '2024-02-27 16:57:43',
    longitude: '东经122°6′2.704″',
    latitude: '北纬27°33′33.037″',
    desiredTrack: '42°', // 航向
    navigationalSpeed: '18节', // 航速
    altitude: '0', // 高度
    national: '中国',
    lastMessageTime: '2024-02-28 16:57:43',
  },
  {
    id: 'HJ002',
    targetType: '护卫舰',
    sideNumber: '温州526',
    planeNumber: '歼-7E',
    discoveryTime: '2024-02-27 16:57:43',
    longitude: '东经122°6′2.704″',
    latitude: '北纬27°33′33.037″',
    desiredTrack: '42°', // 航向
    navigationalSpeed: '18节', // 航速
    altitude: '0', // 高度
    national: '中国',
    lastMessageTime: '2024-02-28 16:57:43',
  },
  {
    id: 'HJ003',
    targetType: '护卫舰',
    sideNumber: '温州526',
    planeNumber: '歼-7E',
    discoveryTime: '2024-02-27 16:57:43',
    longitude: '东经122°6′2.704″',
    latitude: '北纬27°33′33.037″',
    desiredTrack: '42°', // 航向
    navigationalSpeed: '18节', // 航速
    altitude: '0', // 高度
    national: '中国',
    lastMessageTime: '2024-02-28 16:57:43',
  },
];

const sea_situation_mock_column: TableColumnsType = [
  { title: '批号', dataIndex: 'batchNumber' },
  { title: '目标类型', dataIndex: 'category' },
  { title: '机型', dataIndex: 'modelType' },
  { title: '经度', dataIndex: 'longitude', customRender: ({ text, record }) => record.position[0].toFixed(6) },
  { title: '纬度', dataIndex: 'latitude', customRender: ({ text, record }) => record.position[1].toFixed(6) },
  { title: '航向', dataIndex: 'desiredTrack' },
  { title: '航速', dataIndex: 'speed' },
  { title: '高度', dataIndex: 'height' },
];

export { sea_situation_mock_data, sea_situation_mock_column };
